package com.easyshopping.domain;

public class Item {

	public static final String ITEM = "ITEM";
	public static final String ITEM_ID = "_id";
    public static final String ITEM_NAME = "NAME";
    public static final String ITEM_AMOUNT = "AMOUNT";
    public static final String ITEM_PRICE = "PRICE";
    public static final String ITEM_SL = "SHOPPINGLIST_ID";
    public static final String ITEM_CAT = "ITEMCAT_ID";
    public static final String ITEM_CUR = "CURRENCY_ID";
    public static final String ITEM_UNIT = "UNIT_ID";
    public static final String ITEM_STATE = "STATE";
	
	private int id;
	
	private String name;
	
	private double amount;
	
	private double price;
	
	private boolean state;
	
	private ShoppingList shoppingList;
	
	private int cat_id;
	
	private int cur_id;
	
	private int unit_id;

	private static Item instance = new Item();
	public static Item getInstance() {
		return instance;
	}
	
	public Item() {
		
	}
	
	public Item(String name) {
		this.name = name;
		state = false;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isState() {
		return state;
	}

	public void setState(boolean state) {
		this.state = state;
	}

	public ShoppingList getShoppingList() {
		return shoppingList;
	}

	public void setShoppingList(ShoppingList shoppingList) {
		this.shoppingList = shoppingList;
	}

	public double getAmount() {
		return amount;
	}

	public void setAmount(double amount) {
		this.amount = amount;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public int getCat_id() {
		return cat_id;
	}

	public void setCat_id(int catId) {
		cat_id = catId;
	}

	public int getCur_id() {
		return cur_id;
	}

	public void setCur_id(int curId) {
		cur_id = curId;
	}

	public int getUnit_id() {
		return unit_id;
	}

	public void setUnit_id(int unitId) {
		unit_id = unitId;
	}

}
